/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.util.Scanner;
/**
 *
 * @author Катя
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
         System.out.println("Input string");
        Scanner sc = new Scanner(System.in).useDelimiter("\n");
		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
        // TODO code application logic here
    }
}
